import { defineStore } from 'pinia'
import { getToken, setToken, removeToken } from '@/utils/auth'
export const useUserStore = defineStore('user', {
  state: () => {
    return {
      token: getToken(),
      userInfo: {},
    }
  },
  actions: {
    setUserInfo(userInfo: any) {
      this.userInfo = userInfo
    },
  },
})
